package andytest;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import uk.ac.glasgow.demosocs.users.Electorate;
import uk.ac.glasgow.demosocs.users.UserTextReader;

public class TextInputTest {

	UserTextReader mReader;
	@Before
	public void setUp() throws Exception {
		mReader = new UserTextReader();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		Electorate ele = mReader.readFromText();
		System.out.println(ele.getUser("123", "password1").getForename());
		System.out.println(ele.getUser("8888", "password5").getForename());
	}

}
